import axios from 'axios'
const request = axios.create({
  baseURL: 'https://restapi.amap.com/v3/',
  timeout: 10000,
})
request.interceptors.response.use(
  (data) => {
    return data.data
  },
  (err) => {
    return Promise.reject(err)
  }
)
export default request
